﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;
namespace IsikFx.Project.ClientApp.Helpers
{
    public class DataProviderFactory
    {
        public static IWcfDataProvider GetProvider()
        {
            string setting = ConfigurationManager.AppSettings["UseServiceInvoker"] as string;

            if (setting == "true")
            {
                return new WcfTypeInvoker();
            }
            else
            {
                return new WcfServiceInvoker();
            }
        }
    }
}
